扩展了/get api,使其支持参数region从而支持获取指定地区的代理 #692
Open
+36
−15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
前提:我提交的上一个pr #691
非常抱歉我没能更改有关ssdb的代码(这意味着使用ssdb的用户无法使用此api)
我将在后续的pr中提交相关更改, 见谅
扩展了/get api,使其支持参数region从而支持获取指定地区的代理
e.g.
http://ip:5010/get?region=中国
返回
{
"anonymous": "",
"check_count": 27,
"fail_count": 0,
"https": false,
"last_status": true,
"last_time": "2022-08-13 22:36:27",
"proxy": "112.250.110.172:9091",
"region": "中国 山东 泰安 联通",
"source": "freeProxy06"
}
http://ip:5010/get?region=云南
返回
{
"anonymous": "",
"check_count": 1,
"fail_count": 0,
"https": false,
"last_status": true,
"last_time": "2022-08-13 22:37:11",
"proxy": "39.130.150.42:80",
"region": "中国 云南 昆明 移动",
"source": "freeProxy07"
}